<template>
  <div>
    <Child>
      <!-- 作用域插槽，对匿名插槽有影响 -->
      <div slot-scope="{itemList}">
        <h3>{{itemList}}</h3>
      </div>
    </Child>
  </div>
</template>
<script>
import Child from './components/Child'
export default {
  name: 'Father',
  components: {
    Child
  }
}
</script>
<style scoped>
h3 {
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 700;
}
</style>